Skip to main content

Order book

Orderbook data refers to the list of all the buy and sell orders for a particular cryptocurrency that are currently open on the exchange. An order book is a vital tool for traders as it shows the current market depth, price levels, and the volume of buy and sell orders at each price level.

The CoinDCX API provides real-time access to the order book data for all cryptocurrencies traded on our exchange. The order book data is updated continuously to reflect changes in the market, making it possible for traders to get an accurate picture of the market conditions and make informed trading decisions.

To extract order book data using the CoinDCX API, use the following endpoint:

https://public.coindcx.com/market_data/market_data/orderbook/?pair=B-BTC_USDT

You have to pass the pair parameter with the Order book API request:

ParameterRequiredDescription
pairYesIt is a string created by ecode, target_currency_short_name, and base_currency_short name. For example, B-BTC_USDT.

The endpoint will return an array of bids and asks in the response. A sample response will be:

{
"bids":{
"11570.67000000": "0.000871",
"11570.58000000": "0.001974",
"11570.02000000": "0.280293",
"11570.00000000": "5.929216",
"11569.91000000": "0.000871",
"11569.89000000": "0.0016",
,
,
,
},
"asks":{
"13900.00000000": "27.04094600",
"13100.00000000": "15.48547100",
"12800.00000000": "36.93142200",
"12200.00000000": "92.04554800",
"12000.00000000": "72.66595000",
"11950.00000000": "17.16624600",
,
,
,
}